-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: regression test all files #325
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #325 +/- ##
=======================================
Coverage 70.03% 70.03%
=======================================
Files 38 38
Lines 2109 2109
Branches 2109 2109
=======================================
Hits 1477 1477
Misses 562 562
Partials 70 70 ☔ View full report in Codecov by Sentry. |
Benchmark movements: |
304f54d
to
7704481
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @aner-starkware, @dorimedini-starkware, and @nimrod-starkware)
crates/committer_cli/src/tests/regression_tests.rs
line 139 at r2 (raw file):
} pub async fn assert_committer_flow(input: &str, output_path: &str) {
Personal preference
Suggestion:
test_single_committer_flow(
crates/committer_cli/src/tests/regression_tests.rs
line 171 at r2 (raw file):
assert!(execution_time.as_secs_f64() < MAX_TIME_FOR_COMMITTER_FLOW_BECHMARK_TEST); } #[ignore = "To avoid running the benchmark test in Coverage or without the --release flag."]
Please change the benches
directory to something more general (like flow_test_inputs or test_inputs) to match both the regression tests (which uses most of these files) and the becnhmarking. The current name is misleading.
Suggestion:
regression
crates/committer_cli/src/tests/regression_tests.rs
line 177 at r2 (raw file):
} #[ignore = "To avoid running the benchmark test in Coverage or without the --release flag."]
Suggestion:
regression
crates/committer_cli/src/tests/regression_tests.rs
line 192 at r2 (raw file):
} assert_eq!(file_counter, EXPECTED_NUMBER_OF_FILES); }
Please start with this check, it's a shame to run the committer over 99 files to fail in this. You can copy the iterator and call count
on one of the copies at the beginning. Maybe there is a more efficient method.
Code quote:
assert_eq!(file_counter, EXPECTED_NUMBER_OF_FILES);
}
7704481
to
9bb981a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on @dorimedini-starkware, @nimrod-starkware, and @TzahiTaub)
crates/committer_cli/src/tests/regression_tests.rs
line 171 at r2 (raw file):
Previously, TzahiTaub (Tzahi) wrote…
Please change the
benches
directory to something more general (like flow_test_inputs or test_inputs) to match both the regression tests (which uses most of these files) and the becnhmarking. The current name is misleading.
Done.
crates/committer_cli/src/tests/regression_tests.rs
line 177 at r2 (raw file):
} #[ignore = "To avoid running the benchmark test in Coverage or without the --release flag."]
Done.
crates/committer_cli/src/tests/regression_tests.rs
line 192 at r2 (raw file):
Previously, TzahiTaub (Tzahi) wrote…
Please start with this check, it's a shame to run the committer over 99 files to fail in this. You can copy the iterator and call
count
on one of the copies at the beginning. Maybe there is a more efficient method.
Done. Though I'm not sure that I agree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware and @nimrod-starkware)
crates/committer_cli/src/tests/regression_tests.rs
line 192 at r2 (raw file):
Previously, aner-starkware wrote…
Done. Though I'm not sure that I agree.
About what?
* test: regression test for all regression files * refactor: extract assert committer flow function
This change is